package com.dragon.loan.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dragon.account.entity.CmAppConsumptioninst;
import com.dragon.account.repository.CmAppConsumptioninstRepository;
import com.dragon.common.service.BaseService;

/**
 * Created by fuqingyuan on 2017/4/28.
 */
@Service
public class AppConsumptioninstService extends BaseService<CmAppConsumptioninst, String> {

    @Autowired
    private CmAppConsumptioninstRepository appConsumptioninstRepository;

    public CmAppConsumptioninst findByLoanId(String loanId){
        return appConsumptioninstRepository.findByLoanId(loanId);
    }
    
    public List<Map> findRejectDescListByCaseId(String caseId){
    	return appConsumptioninstRepository.findRejectDescListByCaseId(caseId);
    }
}
